package com.lz.sports.ui.checkmodel

import android.os.Bundle
import androidx.lifecycle.lifecycleScope
import com.lz.library.base.BaseFragment
import com.lz.library.extension.click
import com.lz.sports.BR
import com.lz.sports.R
import com.lz.sports.databinding.FragmCodeGunBinding
import com.lz.sports.vm.checkmodel.CodeGunViewModel
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch

//扫码枪
class CodeGunFragment : BaseFragment<CodeGunViewModel, FragmCodeGunBinding>() {

    override fun getLayoutRes(): Int = R.layout.fragm_code_gun

    override fun getVMVariableId(): Int = BR.vm

    override fun initData(savedState: Bundle?) {
        lifecycleScope.launch {
            binding.tvSure.click().collect {  }
        }
    }
}